package com.youyicloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="youyicloud-common-api")
public interface CommonFeignClient {
	@RequestMapping(value="wechat/getAccessToken/{appId}/{appSecret}")
	public String getAccessToken(@PathVariable("appId") String appId, @PathVariable("appSecret") String appSecret);
	
	@RequestMapping("wechat/getJsapiTicket/{appId}/{appSecret}")
	public String getJsapiTicket(@PathVariable("appId") String appId, @PathVariable("appSecret") String appSecret);
	
	@RequestMapping("wechat/updateWechatInfo")
	public String updateWechatInfo();
}
